package cn.zjitc.exam.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ServiceException extends RuntimeException{
    private Integer code;
    private String message;

    public ServiceException(Integer code,String message) {
        this.code = code;
        this.message = message;

    }
}
